package open3366pvp.as3.dataStruct
{
	import flash.utils.ByteArray;

	/**
	 * 桌子详细信息结构体 
	 * @author mandyxiong
	 * 
	 */	
	public class TableInfo
	{
		public var tableId:int;
		public var tableUserTotalCount:int;
		public var bufferSize:int;
		public var bufferData:ByteArray;
		
		public function TableInfo(data:ByteArray = null)
		{
			if(data != null)
			{
				tableId = data.readInt();
				tableUserTotalCount = data.readInt();
				bufferSize = data.readInt();
				bufferData = new ByteArray();
				if(bufferSize != 0)
				{
					data.readBytes(bufferData, 0, bufferSize);
				}
			}
		}
	}
}